package com.jt.service;

import com.jt.factory.ProviderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "sca-provider",contextId = "remotProviderService",fallbackFactory = ProviderFallbackFactory.class)//sca-provider为服务提供者名称
public interface RemoteProviderService {
    
    @GetMapping("/provider/echo/{string}")
    public String echoMessage(@PathVariable("string") String string);
}
